package cn.wolfcode.luowowo.website.controller;

import cn.wolfcode.luowowo.common.util.AjaxResult;
import cn.wolfcode.luowowo.common.util.LogicException;
import cn.wolfcode.luowowo.member.service.IUserInfoService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 猫教授
 * @date 2019/8/7 19:46
 */
@Controller
public class VerifyCodeController {
    @Reference  //不同服务间引入
    private IUserInfoService userInfoService;

    @ResponseBody
    @RequestMapping("/sendVerifyCode")
    public AjaxResult sendVerifyCode(String phone) {
            userInfoService.sendVerifyCode(phone);
            return new AjaxResult(true,"发送成功");
    }




}
